package com.ng.sys.model.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class LoginResponse {
	@Schema(description = "用户id")
	@NonNull
	private String id;
	
	@Schema(description = "姓名")
	@NonNull
	private String name;
	
	@Schema(description = "用户名")
	@NonNull
	private String username;
	
	@Schema(description = "新访问令牌")
	@NonNull
	private String accessToken;
	
	@Schema(description = "刷新令牌")
	@NonNull
	private String refreshToken;
	
	@Schema(description = "令牌类型")
	@NonNull
	private String tokenType;
	
	

}
